Integrand size = 20, antiderivative size = 281 \[ \int \frac {x^2 \left (a+b x^2\right )^p}{(d+e x)^2} \, dx=-\frac {d^2 \left (a+b x^2\right )^{1+p}}{e \left (b d^2+a e^2\right ) (d+e x)}-\frac {2 \left (a e^2+b d^2 (1+p)\right ) x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \operatorname {AppellF1}\left (\frac {1}{2},-p,1,\frac {3}{2},-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{e^2 \left (b d^2+a e^2\right )}+\frac {\left (a e^2+2 b d^2 (1+p)\right ) x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )}{e^2 \left (b d^2+a e^2\right )}+\frac {d \left (a e^2+b d^2 (1+p)\right ) \left (a+b x^2\right )^{1+p} \operatorname {Hypergeometric2F1}\left (1,1+p,2+p,\frac {e^2 \left (a+b x^2\right )}{b d^2+a e^2}\right )}{e \left (b d^2+a e^2\right )^2 (1+p)} \]
-d^2*(b*x^2+a)^(p+1)/e/(a*e^2+b*d^2)/(e*x+d)-2*(a*e^2+b*d^2*(p+1))*x*(b*x^ 2+a)^p*AppellF1(1/2,1,-p,3/2,e^2*x^2/d^2,-b*x^2/a)/e^2/(a*e^2+b*d^2)/((1+b *x^2/a)^p)+(a*e^2+2*b*d^2*(p+1))*x*(b*x^2+a)^p*hypergeom([1/2, -p],[3/2],- b*x^2/a)/e^2/(a*e^2+b*d^2)/((1+b*x^2/a)^p)+d*(a*e^2+b*d^2*(p+1))*(b*x^2+a) ^(p+1)*hypergeom([1, p+1],[2+p],e^2*(b*x^2+a)/(a*e^2+b*d^2))/e/(a*e^2+b*d^ 2)^2/(p+1)
Time = 0.42 (sec) , antiderivative size = 300, normalized size of antiderivative = 1.07 \[ \int \frac {x^2 \left (a+b x^2\right )^p}{(d+e x)^2} \, dx=\frac {\left (a+b x^2\right )^p \left (\frac {d^2 \left (\frac {e \left (-\sqrt {-\frac {a}{b}}+x\right )}{d+e x}\right )^{-p} \left (\frac {e \left (\sqrt {-\frac {a}{b}}+x\right )}{d+e x}\right )^{-p} \operatorname {AppellF1}\left (1-2 p,-p,-p,2-2 p,\frac {d-\sqrt {-\frac {a}{b}} e}{d+e x},\frac {d+\sqrt {-\frac {a}{b}} e}{d+e x}\right )}{(-1+2 p) (d+e x)}-\frac {d \left (\frac {e \left (-\sqrt {-\frac {a}{b}}+x\right )}{d+e x}\right )^{-p} \left (\frac {e \left (\sqrt {-\frac {a}{b}}+x\right )}{d+e x}\right )^{-p} \operatorname {AppellF1}\left (-2 p,-p,-p,1-2 p,\frac {d-\sqrt {-\frac {a}{b}} e}{d+e x},\frac {d+\sqrt {-\frac {a}{b}} e}{d+e x}\right )}{p}+e x \left (1+\frac {b x^2}{a}\right )^{-p} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )\right )}{e^3} \]
((a + b*x^2)^p*((d^2*AppellF1[1 - 2*p, -p, -p, 2 - 2*p, (d - Sqrt[-(a/b)]* e)/(d + e*x), (d + Sqrt[-(a/b)]*e)/(d + e*x)])/((-1 + 2*p)*((e*(-Sqrt[-(a/ b)] + x))/(d + e*x))^p*((e*(Sqrt[-(a/b)] + x))/(d + e*x))^p*(d + e*x)) - ( d*AppellF1[-2*p, -p, -p, 1 - 2*p, (d - Sqrt[-(a/b)]*e)/(d + e*x), (d + Sqr t[-(a/b)]*e)/(d + e*x)])/(p*((e*(-Sqrt[-(a/b)] + x))/(d + e*x))^p*((e*(Sqr t[-(a/b)] + x))/(d + e*x))^p) + (e*x*Hypergeometric2F1[1/2, -p, 3/2, -((b* x^2)/a)])/(1 + (b*x^2)/a)^p))/e^3
Time = 0.45 (sec) , antiderivative size = 267, normalized size of antiderivative = 0.95, number of steps used = 11, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {603, 27, 719, 238, 237, 504, 334, 333, 353, 78}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {x^2 \left (a+b x^2\right )^p}{(d+e x)^2} \, dx\) |
\(\Big \downarrow \) 603 |
\(\displaystyle -\frac {\int \frac {\left (a d e-\left (2 b (p+1) d^2+a e^2\right ) x\right ) \left (b x^2+a\right )^p}{e (d+e x)}dx}{a e^2+b d^2}-\frac {d^2 \left (a+b x^2\right )^{p+1}}{e (d+e x) \left (a e^2+b d^2\right )}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {\int \frac {\left (a d e-\left (2 b (p+1) d^2+a e^2\right ) x\right ) \left (b x^2+a\right )^p}{d+e x}dx}{e \left (a e^2+b d^2\right )}-\frac {d^2 \left (a+b x^2\right )^{p+1}}{e (d+e x) \left (a e^2+b d^2\right )}\) |
\(\Big \downarrow \) 719 |
\(\displaystyle -\frac {\frac {2 d \left (a e^2+b d^2 (p+1)\right ) \int \frac {\left (b x^2+a\right )^p}{d+e x}dx}{e}-\frac {\left (a e^2+2 b d^2 (p+1)\right ) \int \left (b x^2+a\right )^pdx}{e}}{e \left (a e^2+b d^2\right )}-\frac {d^2 \left (a+b x^2\right )^{p+1}}{e (d+e x) \left (a e^2+b d^2\right )}\) |
\(\Big \downarrow \) 238 |
\(\displaystyle -\frac {\frac {2 d \left (a e^2+b d^2 (p+1)\right ) \int \frac {\left (b x^2+a\right )^p}{d+e x}dx}{e}-\frac {\left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (a e^2+2 b d^2 (p+1)\right ) \int \left (\frac {b x^2}{a}+1\right )^pdx}{e}}{e \left (a e^2+b d^2\right )}-\frac {d^2 \left (a+b x^2\right )^{p+1}}{e (d+e x) \left (a e^2+b d^2\right )}\) |
\(\Big \downarrow \) 237 |
\(\displaystyle -\frac {\frac {2 d \left (a e^2+b d^2 (p+1)\right ) \int \frac {\left (b x^2+a\right )^p}{d+e x}dx}{e}-\frac {x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (a e^2+2 b d^2 (p+1)\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )}{e}}{e \left (a e^2+b d^2\right )}-\frac {d^2 \left (a+b x^2\right )^{p+1}}{e (d+e x) \left (a e^2+b d^2\right )}\) |
\(\Big \downarrow \) 504 |
\(\displaystyle -\frac {\frac {2 d \left (a e^2+b d^2 (p+1)\right ) \left (d \int \frac {\left (b x^2+a\right )^p}{d^2-e^2 x^2}dx-e \int \frac {x \left (b x^2+a\right )^p}{d^2-e^2 x^2}dx\right )}{e}-\frac {x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (a e^2+2 b d^2 (p+1)\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )}{e}}{e \left (a e^2+b d^2\right )}-\frac {d^2 \left (a+b x^2\right )^{p+1}}{e (d+e x) \left (a e^2+b d^2\right )}\) |
\(\Big \downarrow \) 334 |
\(\displaystyle -\frac {\frac {2 d \left (a e^2+b d^2 (p+1)\right ) \left (d \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \int \frac {\left (\frac {b x^2}{a}+1\right )^p}{d^2-e^2 x^2}dx-e \int \frac {x \left (b x^2+a\right )^p}{d^2-e^2 x^2}dx\right )}{e}-\frac {x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (a e^2+2 b d^2 (p+1)\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )}{e}}{e \left (a e^2+b d^2\right )}-\frac {d^2 \left (a+b x^2\right )^{p+1}}{e (d+e x) \left (a e^2+b d^2\right )}\) |
\(\Big \downarrow \) 333 |
\(\displaystyle -\frac {\frac {2 d \left (a e^2+b d^2 (p+1)\right ) \left (\frac {x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \operatorname {AppellF1}\left (\frac {1}{2},-p,1,\frac {3}{2},-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d}-e \int \frac {x \left (b x^2+a\right )^p}{d^2-e^2 x^2}dx\right )}{e}-\frac {x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (a e^2+2 b d^2 (p+1)\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )}{e}}{e \left (a e^2+b d^2\right )}-\frac {d^2 \left (a+b x^2\right )^{p+1}}{e (d+e x) \left (a e^2+b d^2\right )}\) |
\(\Big \downarrow \) 353 |
\(\displaystyle -\frac {\frac {2 d \left (a e^2+b d^2 (p+1)\right ) \left (\frac {x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \operatorname {AppellF1}\left (\frac {1}{2},-p,1,\frac {3}{2},-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d}-\frac {1}{2} e \int \frac {\left (b x^2+a\right )^p}{d^2-e^2 x^2}dx^2\right )}{e}-\frac {x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (a e^2+2 b d^2 (p+1)\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )}{e}}{e \left (a e^2+b d^2\right )}-\frac {d^2 \left (a+b x^2\right )^{p+1}}{e (d+e x) \left (a e^2+b d^2\right )}\) |
\(\Big \downarrow \) 78 |
\(\displaystyle -\frac {\frac {2 d \left (a e^2+b d^2 (p+1)\right ) \left (\frac {x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \operatorname {AppellF1}\left (\frac {1}{2},-p,1,\frac {3}{2},-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d}-\frac {e \left (a+b x^2\right )^{p+1} \operatorname {Hypergeometric2F1}\left (1,p+1,p+2,\frac {e^2 \left (b x^2+a\right )}{b d^2+a e^2}\right )}{2 (p+1) \left (a e^2+b d^2\right )}\right )}{e}-\frac {x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (a e^2+2 b d^2 (p+1)\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-p,\frac {3}{2},-\frac {b x^2}{a}\right )}{e}}{e \left (a e^2+b d^2\right )}-\frac {d^2 \left (a+b x^2\right )^{p+1}}{e (d+e x) \left (a e^2+b d^2\right )}\) |
-((d^2*(a + b*x^2)^(1 + p))/(e*(b*d^2 + a*e^2)*(d + e*x))) - (-(((a*e^2 + 2*b*d^2*(1 + p))*x*(a + b*x^2)^p*Hypergeometric2F1[1/2, -p, 3/2, -((b*x^2) /a)])/(e*(1 + (b*x^2)/a)^p)) + (2*d*(a*e^2 + b*d^2*(1 + p))*((x*(a + b*x^2 )^p*AppellF1[1/2, -p, 1, 3/2, -((b*x^2)/a), (e^2*x^2)/d^2])/(d*(1 + (b*x^2 )/a)^p) - (e*(a + b*x^2)^(1 + p)*Hypergeometric2F1[1, 1 + p, 2 + p, (e^2*( a + b*x^2))/(b*d^2 + a*e^2)])/(2*(b*d^2 + a*e^2)*(1 + p))))/e)/(e*(b*d^2 + a*e^2))
3.5.18.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(b *c - a*d)^n*((a + b*x)^(m + 1)/(b^(n + 1)*(m + 1)))*Hypergeometric2F1[-n, m + 1, m + 2, (-d)*((a + b*x)/(b*c - a*d))], x] /; FreeQ[{a, b, c, d, m}, x] && !IntegerQ[m] && IntegerQ[n]
Int[((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[a^p*x*Hypergeometric2F1[- p, 1/2, 1/2 + 1, (-b)*(x^2/a)], x] /; FreeQ[{a, b, p}, x] && !IntegerQ[2*p ] && GtQ[a, 0]
Int[((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[a^IntPart[p]*((a + b*x^2) ^FracPart[p]/(1 + b*(x^2/a))^FracPart[p]) Int[(1 + b*(x^2/a))^p, x], x] / ; FreeQ[{a, b, p}, x] && !IntegerQ[2*p] && !GtQ[a, 0]
Int[((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2)^(q_), x_Symbol] :> Sim p[a^p*c^q*x*AppellF1[1/2, -p, -q, 3/2, (-b)*(x^2/a), (-d)*(x^2/c)], x] /; F reeQ[{a, b, c, d, p, q}, x] && NeQ[b*c - a*d, 0] && (IntegerQ[p] || GtQ[a, 0]) && (IntegerQ[q] || GtQ[c, 0])
Int[((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2)^(q_), x_Symbol] :> Sim p[a^IntPart[p]*((a + b*x^2)^FracPart[p]/(1 + b*(x^2/a))^FracPart[p]) Int[ (1 + b*(x^2/a))^p*(c + d*x^2)^q, x], x] /; FreeQ[{a, b, c, d, p, q}, x] && NeQ[b*c - a*d, 0] && !(IntegerQ[p] || GtQ[a, 0])
Int[(x_)*((a_) + (b_.)*(x_)^2)^(p_.)*((c_) + (d_.)*(x_)^2)^(q_.), x_Symbol] :> Simp[1/2 Subst[Int[(a + b*x)^p*(c + d*x)^q, x], x, x^2], x] /; FreeQ[ {a, b, c, d, p, q}, x] && NeQ[b*c - a*d, 0]
Int[((a_) + (b_.)*(x_)^2)^(p_)/((c_) + (d_.)*(x_)), x_Symbol] :> Simp[c I nt[(a + b*x^2)^p/(c^2 - d^2*x^2), x], x] - Simp[d Int[x*((a + b*x^2)^p/(c ^2 - d^2*x^2)), x], x] /; FreeQ[{a, b, c, d, p}, x]
Int[(x_)^(m_)*((c_) + (d_.)*(x_))^(n_)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol ] :> With[{Qx = PolynomialQuotient[x^m, c + d*x, x], R = PolynomialRemainde r[x^m, c + d*x, x]}, Simp[d*R*(c + d*x)^(n + 1)*((a + b*x^2)^(p + 1)/((n + 1)*(b*c^2 + a*d^2))), x] + Simp[1/((n + 1)*(b*c^2 + a*d^2)) Int[(c + d*x) ^(n + 1)*(a + b*x^2)^p*ExpandToSum[(n + 1)*(b*c^2 + a*d^2)*Qx + b*c*R*(n + 1) - b*d*R*(n + 2*p + 3)*x, x], x], x]] /; FreeQ[{a, b, c, d, p}, x] && IGt Q[m, 1] && LtQ[n, -1] && NeQ[b*c^2 + a*d^2, 0]
Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p _.), x_Symbol] :> Simp[g/e Int[(d + e*x)^(m + 1)*(a + c*x^2)^p, x], x] + Simp[(e*f - d*g)/e Int[(d + e*x)^m*(a + c*x^2)^p, x], x] /; FreeQ[{a, c, d, e, f, g, m, p}, x] && !IGtQ[m, 0]
\[\int \frac {x^{2} \left (b \,x^{2}+a \right )^{p}}{\left (e x +d \right )^{2}}d x\]
\[ \int \frac {x^2 \left (a+b x^2\right )^p}{(d+e x)^2} \, dx=\int { \frac {{\left (b x^{2} + a\right )}^{p} x^{2}}{{\left (e x + d\right )}^{2}} \,d x } \]
Timed out. \[ \int \frac {x^2 \left (a+b x^2\right )^p}{(d+e x)^2} \, dx=\text {Timed out} \]
\[ \int \frac {x^2 \left (a+b x^2\right )^p}{(d+e x)^2} \, dx=\int { \frac {{\left (b x^{2} + a\right )}^{p} x^{2}}{{\left (e x + d\right )}^{2}} \,d x } \]
\[ \int \frac {x^2 \left (a+b x^2\right )^p}{(d+e x)^2} \, dx=\int { \frac {{\left (b x^{2} + a\right )}^{p} x^{2}}{{\left (e x + d\right )}^{2}} \,d x } \]
Timed out. \[ \int \frac {x^2 \left (a+b x^2\right )^p}{(d+e x)^2} \, dx=\int \frac {x^2\,{\left (b\,x^2+a\right )}^p}{{\left (d+e\,x\right )}^2} \,d x \]